<?php if( ! defined('BASEPATH') ) exit('No direct script access allowed');?>




<?php echo form_open('', array('class' => '', 'name' => "formulario", 'role' => 'form')); ?>
<div class="panel panel-default">
    <div class="panel-heading">
        <?php echo lang('paquetes.selecion_paquete'); ?>
        <input type="hidden" id="token" name="<?php echo $this->security->get_csrf_token_name(); ?>" cookie="<?php echo config_item('csrf_cookie_name'); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">
    </div>
    <div class="panel-body">
        <?php foreach ($paquetes as $row): ?>
        <div class="radio">
          <label>
              <input type="radio" name="id_paquete" id="<?php echo 'paquetes_'.$row->id_paquete; ?>" value="<?php echo $row->id_paquete; ?>" <?php echo  set_radio('id_paquete', $row->id_paquete,(isset($val_default['id_paquete']) && $val_default['id_paquete'] === $row->id_paquete)); ?>>
                <?php echo lang('paquetes.tipo'.$row->id_paquete, FALSE, $row->nombre); ?>
                <strong><?php echo '$'.$row->precio; ?></strong>
                <ul>
                    <?php foreach ($paquetes_articulos[$row->id_paquete] as $row2): ?>
                    <li><?php echo $row2->nombre_articulo; ?></li>
                    <?php endforeach; ?>
                </ul>
              </label>
          </div>
        <?php endforeach; ?>
        <?php echo form_error('paquete', '<div class="bg-danger">', '</div>'); ?>
    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">
        <?php echo lang('paquetes.articulos'); ?>
    </div>
    <div class="panel-body form-horizontal">
        <div id="agregar_articulo" class="form-group">
            <label class="col-md-1 control-label" for="cantidad">Cantidad</label>
            <div class="col-md-2">
                <input class="form-control" type="number" id="cantidad" value="1" />
            </div>
            <label class="col-md-1 control-label" for="articulo">Adicional</label>
            <div class="col-md-5">
                <select class="form-control" id="articulo">
                    <option value="" <?php echo set_select('tipo_id', '', TRUE); ?>>Seleccione uno</option>
                    <?php foreach ($articulos as $row): ?>
                    <option value="<?php echo $row->id_articulo; ?>" precio="<?php echo $row->precio; ?>"><?php echo $row->nombre.' - $'.$row->precio;?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <button type="button" id="agregar" class="btn btn-liner btn-default">Agregar</button>
        </div>
        <table class="table">
            <caption>Optional table caption.</caption>
            <thead>
                <tr>
                    <th>Cantidad</th>
                    <th>Articulo</th>
                    <th>Precio U</th>
                    <th>Total</th>
                    <th></th>
                </tr>
            </thead>
            <tbody id="tbody">
                <?php ?>

                <?php ?>
            </tbody>
        </table>
    </div>
</div>
 
<div class="panel panel-default">
    <div class="panel-heading">
        <?php echo lang('paquetes.selecion_info2'); ?>
    </div>
    <div class="panel-body form-horizontal">
        <?php echo $html; ?>
    </div>
</div>
<button class="col-md-4 col-md-offset-4 btn btn-default btn-sm" type="submit"><?php echo lang('paso2b.'.$texto_boton); ?></button>
</form>
 

<?php

/* End of file paquetes.php */

/* Location: /application/views/participantes_info/paquetes.php */ 